package com.zuipin.service;

import java.text.ParseException;

import com.zuipin.entity.DrawNum;
import com.zuipin.framework.exception.CustomException;
import com.zuipin.framework.result.Result;
import com.zuipin.vo.DistributeResultVo;

public interface IDrawNumService {
	
	public Integer modityDrawNum(Long memberId, Long ruleId, Long sysId, Integer num, Long sysUserId);
	
	public DrawNum findDrawNum(Long memberId, Long ruleId, Long sysId, String device);
	
	public int modityDrawNumLock(Long memberId, Long ruleId, Long sysId, Integer num, Long sysUserId);
	
	public boolean isCanDraw(Long memberId, Long ruleId, Long sysId);
	
	public Result<DistributeResultVo> toSendDrawNum(Long sysUserId, Long sysId, Long ruleSetId, Short isMemberLevel, String acceptor, Integer num)
			throws CustomException, ParseException;
	
	public DrawNum findDrawNumBySerNum(Long memberId, String serialNumber, Long sysId, String device) throws CustomException;
	
}
